<div class="modal" tabindex="-1" role="dialog" style="text-align: left;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header" ng-show="title">
                <button type="button" class="close" ng-click="$hide()">&times;</button>
                <h4 class="modal-title" ng-bind-html="title"></h4>
            </div>
            <div class="modal-body">
                <div class="row hyc-line-height-30">
                    <div class="col-md-2">板车位置</div>
                    <div class="col-md-10">
                        <div class="row">
                            <div class="col-md-4">
                                <div class="form-group">
                                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-change="loadTrailCity()" ng-model="waybillTrailObj.provinceCode" bs-options="p.code as p.name for p in loadProvince" bs-select placeholder="---请选择---">
                                    </button>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-change="loadTrailCounty()"  ng-model="waybillTrailObj.cityCode" bs-options="cityDate.code as cityDate.name for cityDate in trailCity" bs-select placeholder="---请选择---">
                                    </button>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="waybillTrailObj.countyCode" bs-options="countyDate.code as countyDate.name for countyDate in trailCounty" bs-select placeholder="---请选择---">
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row hyc-line-height-30">
                    <div class="col-md-2">详细地址</div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <input type="text" class="form-control hyc-color" ng-model="waybillTrailObj.addr" placeholder="详细地址">
                        </div>
                    </div>
                    <div class="col-md-2 text-right">日期</div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <!--<input type="datetime-local" class="form-control hyc-color" ng-model="waybillTrailObj.updateTime" placeholder="日期" bs-datepicker date-format="yyyy-MM-dd HH:mm:ss" data-max-date="today" data-autoclose="1">-->
                            <div class="dropdown">
                                <a class="dropdown-toggle my-toggle-select" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="">
                                    <div class="input-append hyc-color">
                                        <input type="text" class="input-large" data-ng-model="waybillTrailObj.updateTime">
                                        <i class="fa fa-calendar fa-lg"></i>
                                    </div>
                                </a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                    <datetimepicker data-ng-model="waybillTrailObj.updateTime" data-datetimepicker-config="{dropdownSelector: '.my-toggle-select', modelType: 'YYYY-MM-DD HH:mm:ss'}"></datetimepicker>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="overflow-y: auto; height: 188px;">
                    <table class="table table-bordered table-hover margin-bottom-0" style="width: 100%;">
                        <tr>
                            <th class="text-center">上报时间</th>
                            <th class="text-center">所在省</th>
                            <th class="text-center">所在市</th>
                            <th class="text-center">详细地址</th>
                            <th class="text-center">经度</th>
                            <th class="text-center">纬度</th>
                        </tr>
                        <tr ng-repeat="item in waybillTrail track by $index">
                            <td class="text-center">{{item.updateTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                            <td>{{item.provinceName}}</td>
                            <td>{{item.cityName}}</td>
                            <td>{{item.addr}}</td>
                            <td>{{item.longitude}}</td>
                            <td>{{item.latitude}}</td>
                        </tr>
                        <tr ng-if="waybillTrail.length <= 0">
                            <td colspan="6">
                                <div class="hyc-color text-center">暂无历史在途信息</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-default" ng-click="$hide()">取消</button>
                <button type="button" class="btn btn-sm btn-warning" ng-click="saveWaybillTrail()">提交在途信息</button>
            </div>
        </div>
    </div>
</div>